package com.mall.sun.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mall.sun.model.dto.AgentDTO;
import com.mall.sun.model.dto.GoodAgentDTO;
import com.mall.sun.model.dto.PageHelper;
import com.mall.sun.model.po.Agent;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Tansty
 * @since 2021-11-30
 */
public interface AgentService extends IService<Agent> {
    int updateAgent(GoodAgentDTO goodAgentDTO);
    Long countAgent();
    Agent[] getAllAgent(PageHelper pageHelper);
    AgentDTO[] searchAgent(String aName);
    int updateAgentPo(Agent agent);
    int deleteAgent(AgentDTO agentDTO);
    int insertAgentPo(Agent agent);
    Agent[] getAllAgentDesc(PageHelper pageHelper);

}

